﻿using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.Mvvm;
using Microsoft.Practices.Prism.StoreApps;
using System;
using System.Collections.Generic;
using System.Text;

namespace HelloWorldApp.ViewModels
{
    public class MainPageViewModel : ViewModel
    {
        private string message;

        public string Message
        {
            get { return this.message; }
            set { this.SetProperty(ref this.message, value); }
        }

        public DelegateCommand GreetCommand { get; private set; }

        public MainPageViewModel()
        {
            this.GreetCommand = new DelegateCommand(() => this.Message = "こんにちは世界");
        }
    }
}
